/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.butler.cezary.syncTool.scanning;

/**
 *
 * @author czarek
 */
public enum ChangeStatus{ NEW, NONE, LOCAL, REMOTE, CHANGED;

    public ChangeStatus interpretWith(ChangeStatus status){
        if(status==this||((status==CHANGED||status==NONE)&&(this==LOCAL||this==REMOTE))){
            return this;
        }
        throw new IllegalStateException("Niedozwolona kombinacja statusów");
    }
}